|
|
@@ -69,7 +69,6 @@ def clerk_update(request):
|
69
|
69
|
clerk_id = request.POST.get('clerk_id', '')
|
70
|
70
|
clerk_name = request.POST.get('clerk_name', '')
|
71
|
71
|
clerk_phone = request.POST.get('clerk_phone', '')
|
72
|
|
- user_status = request.POST.get('user_status', '0')
|
73
|
72
|
is_auth = request.POST.get('is_auth', '0') # 1 为已授权,0 为未授权
|
74
|
73
|
|
75
|
74
|
admin_id = request.session.get('admin_id')
|
|
|
@@ -88,10 +87,8 @@ def clerk_update(request):
|
88
|
87
|
clerk.clerk_name = clerk_name
|
89
|
88
|
if clerk_phone:
|
90
|
89
|
clerk.clerk_phone = clerk_phone
|
91
|
|
- if user_status:
|
92
|
|
- clerk.user_status = bool(int(user_status))
|
93
|
90
|
if is_auth:
|
94
|
|
- clerk.is_auth = bool(int(is_auth))
|
|
91
|
+ clerk.user_status = clerk.is_auth = bool(int(is_auth))
|
95
|
92
|
|
96
|
93
|
clerk.save()
|
97
|
94
|
|